package com.fjh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fjh.domain.Order;
import com.fjh.dto.OrderConfirmDto;
import com.fjh.model.OrderStatus;
import com.fjh.model.OrderVo;

public interface OrderService extends IService<Order>{

    /**
     * 查询用户的订单状态数量
     * @param userId
     * @return
     */
    OrderStatus getUserOrderCount(String userId);

    /**
     * 订单的确认
     * @param userId
     * @param orderConfirmDto
     * @return
     */
    OrderVo orderConfim(String userId, OrderConfirmDto orderConfirmDto);

    /**
     * 下预订单
     * @param userId
     * @param orderVo
     * @return
     */
    String orderSubmit(String userId, OrderVo orderVo);
}
